﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Cryptography.ascx.cs" Inherits="Cyberwolf.Modules.PWCAPAdmin.Configuration.Cryptography" %>
<%@ register src="../UserControls/MainMenu.ascx" tagname="MainMenu" tagprefix="pw" %>
<asp:panel id="pnPWCAPAdminContainer" runat="server">
<div id="PWCAPAdminContainer">
    <div id="dvhead">
        <div class="nav">
            <asp:linkbutton id="lnkLogout" onclick="lnkLogout_Click" runat="server"></asp:linkbutton>
            <pw:MainMenu id="pwMenu" runat="server"></pw:MainMenu>
            <br class="clearfix" />
        </div>
    </div>
    <div id="dvflash">
        <asp:literal id="litNoticeFlash" runat="server" enableviewstate="false"></asp:literal>
        <asp:literal id="litErrorFlash" runat="server" enableviewstate="false"></asp:literal>
    </div>
    <div id="dvcontent">
        <div>
            <asp:gridview id="gridCryptography" runat="server" gridlines="None" cssclass="grid" datakeynames="Application_ID" autogeneratecolumns="False" onrowcreated="gridCryptography_RowCreated" onrowdatabound="gridCryptography_RowDataBound" onrowcommand="gridCryptography_RowCommand">
                <alternatingrowstyle cssclass="e" />
                <columns>
                    <asp:boundfield datafield="Application_ID" headertext="Application ID" headerstyle-width="120px" />
                    <asp:boundfield datafield="Application_Name" headertext="Application Name" headerstyle-width="160px" />
                    <asp:boundfield datafield="Description" headertext="Description" headerstyle-width="240px" />
                    <asp:templatefield headertext="Public Key">
                        <itemtemplate>
                            <asp:textbox id="txtPublicKey" readonly="true" textmode="MultiLine" runat="server" />
                            <asp:literal id="litPrivateKey" text="<strong>Private Key</strong><br />" visible="false" runat="server" />
                            <asp:textbox id="txtPrivateKey" readonly="true" textmode="MultiLine" visible="false" runat="server" />
                            <asp:imagebutton id="btnRefresh" imageurl="../images/refresh.png" commandname="refresh" runat="server" />
                        </itemtemplate>
                    </asp:templatefield>
                </columns>
                <emptydatatemplate>
                    <div class="ferror">
                        <asp:label id="lbNoRecords" runat="server" resourcekey="lbNoRecords">No record found.</asp:label>
                    </div>
                </emptydatatemplate>
            </asp:gridview>
        </div>
    </div>
    <div id="modalbg"></div>
</div>
</asp:panel>